#ifndef __XKK_SOCKETIO_H__
#define __XKK_SOCKETIO_H__

namespace xkk
{


class SocketIO
{
public:
    explicit
    SocketIO(int fd); 

    int readn(char* buff,int len);
    int readline(char* buff,int maxlen);
    int writen(const char* buff,int len);
private:
    int recvPeek(char* buff,int len);
private:
    int _fd;
};

}//end of namespace xkk
#endif
